<template>
  <tar-bar class="tar-bar">
    <tar-bar-item path="/home">
      <img slot="item-icon" src="~@/assets/img/tarbar/home1.svg" alt />
      <img slot="item-icon-active" src="~@/assets/img/tarbar/home2.svg" alt />
      <div slot="item-text">首页</div>
    </tar-bar-item>
    <tar-bar-item path="/category">
      <img slot="item-icon" src="~@/assets/img/tarbar/category1.svg" alt />
      <img slot="item-icon-active" src="~@/assets/img/tarbar/category2.svg" alt />
      <div slot="item-text">分类</div>
    </tar-bar-item>
    <tar-bar-item path="/shopcart">
      <img slot="item-icon" src="~@/assets/img/tarbar/shopcart1.svg" alt />
      <img slot="item-icon-active" src="~@/assets/img/tarbar/shopcart2.svg" alt />
      <div slot="item-text">购物车</div>
    </tar-bar-item>
    <tar-bar-item path="/profile">
      <img slot="item-icon" src="~@/assets/img/tarbar/profile1.svg" alt />
      <img slot="item-icon-active" src="~@/assets/img/tarbar/profile2.svg" alt />
      <div slot="item-text">我的</div>
    </tar-bar-item>
  </tar-bar>
</template>

<script>
import TarBar from "@/components/common/tarbar/TarBar";
import TarBarItem from "@/components/common/tarbar/TarBarItem";

export default {
  name: "MainTarBar",
  components: {
    "tar-bar": TarBar,
    "tar-bar-item": TarBarItem
  }
};
</script>

<style scoped>
.tar-bar {
  z-index: 9;
}
</style>
